﻿using Application.Dto;
using AutoMapper;
using Domain.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.Profiles
{
    public class UserProfile : Profile
    {
        public UserProfile()
        {
            //配置映射关系
            CreateMap<User, UserLogin>().ReverseMap();
            CreateMap<UserRoles, UserRolesAddDto>().ReverseMap();
            CreateMap<Roles, RoleDeleteDto>().ReverseMap();
        }
    }
}
